package com.xuyiwei.mayi.controller;

import com.xuyiwei.mayi.feign.MemberFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xuyiwei on 2019/4/23.
 */
@RestController
public class MemberController {
    @Autowired
    private MemberFeign memberFeign;

    @RequestMapping("/getPort")
    public String getPort(){
        return memberFeign.getPort();
    }
}
